package com.weixing.mall.provider.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName CategorySpecDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/8/12
 * @Version 1.0
 **/
@Data
@ApiModel(description = "商品类目规格关联表")
public class CategorySpecDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "类目id")
    @NotNull(message = "类目id不能为空")
    private Long categoryId;

    @ApiModelProperty(value = "规格id")
    @NotNull(message = "规格id不能为空")
    private Long specId;

    @ApiModelProperty(value = "排序")
    private Integer orderBy;
}
